package cn.rtangyy.seckilling.dao;

import cn.rtangyy.seckilling.entity.SeckillOrder;
import org.apache.ibatis.annotations.Param;

public interface SeckillOrderDao {

    Integer orderIsExist(@Param("userId") Long userId,@Param("goodsId") Long goodsId);

    /**
     * 新增秒杀订单
     * @param seckillOrder
     */
    void insertSecOrder(SeckillOrder seckillOrder);

    /**
     * 查询订单id
     * @param userId
     * @param goodsId
     * @return
     */
    Long findOrderId(@Param("userId") Long userId,@Param("goodsId") Long goodsId);
}
